<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="css/style.css">

</head>
<body>
	<div class="menu">

		<table>
			<tbody>
				<tr>
					<td><form method="post" action="providerAdmin">
							供应商名称：<input name="name" class="input-text" type="text" />
							&nbsp;&nbsp;&nbsp;&nbsp; 供应商描述：<input name="description"
								class="input-text" type="text"/>&nbsp;&nbsp;&nbsp;&nbsp; <input
								value="组 合 查 询" type="submit"/>
						</form>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="main">
		<div class="optitle clearfix">
			<em><input value="添加数据" class="input-button"
				onclick="window.location='providerAdd.jsp'" type="button"> </em>
			<div class="title">供应商管理&gt;&gt;</div>
		</div>

		<div class="content">
			<table class="list">
				<tbody>
					<tr>
						<td width="70" height="29"><div class="STYLE1" align="center">编号</div>
						</td>
						<td width="80"><div class="STYLE1" align="center">供应商名称</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">供应商描述</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">联系人</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">电话</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">地址</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">操作</div>
						</td>
					</tr>

					<c:forEach var="p" items="${list}">
						<tr>
							<td width="70" height="29"><div class="STYLE1"
									align="center">${p.id}</div>
							</td>
							<td width="80"><div class="STYLE1" align="center">${p.name}</div>
							</td>
							<td width="100"><div class="STYLE1" align="center">${p.description}</div>
							</td>
							<td width="100"><div class="STYLE1" align="center">${p.contactor}</div>
							</td>
							<td width="100"><div class="STYLE1" align="center">${p.phone}</div>
							</td>
							<td width="100"><div class="STYLE1" align="center">${p.address}</div>
							</td>
							<td width="100">
								<div class="STYLE1" align="center">
									<a href="providerUpdate?id=${p.id}">修改</a>
									<a href="providerDel?id=${p.id}" onclick="return confirm('确定要删除？')">删除</a>
								</div>
							</td>
						</tr>
					</c:forEach>

				</tbody>
			</table>
			<div class="page">
				<a href="providerAdmin">首页</a> <a
					href="providerAdmin?pageIndex=${pageIndex-1}">上一页</a> <a
					href="providerAdmin?pageIndex=${pageIndex+1}">下一页</a> <a
					href="providerAdmin?pageIndex=${pageCount}">尾页</a>
			</div>
		</div>
	</div>
</body>
</html>